<?php
namespace soa\orders\v1\collectCode;

use soa\client;

class collectCode extends client{
    /**
     * @var string
     */
    protected $service_url = 'http://order.core.kuaidihelp.com/';

    /**
     * @var string
     */
    protected $service_name = 'kuaidihelp_order2';

    //申请取件码
    public function insert($uid,$platform,$orderId,$waybill){
        return $this->post('v1/collectCode/collectCode/insert', compact('uid','platform','orderId','waybill'));
    }

	//根据订单信息查询
    public function getByOrder($uid,$platform,$orderId,$waybill){
        return $this->post('v1/collectCode/collectCode/getByOrder', compact('uid','platform','orderId','waybill'));
    }

	//根据取件码查询
    public function getByCode($uid,$platform,$code){
        return $this->post('v1/collectCode/collectCode/getByCode', compact('uid','platform','code'));
    }
}